<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('锅炉房值班记录列表')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>


                        <li class="select-time">
                            <label>查询时间： </label>
                            <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
                            <span>-</span>
                            <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
                        </li>


                        <!--<li>-->
                            <!--查表人员：<input type="text" name="createBy" placeholder="查表人员"/>-->
                        <!--</li>-->


                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                    class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                    class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <!--<div class="btn-group-sm" id="toolbar" role="group">-->
            <!--<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:ncGasDuty:add">-->
                <!--<i class="fa fa-plus"></i> 添加-->
            <!--</a>-->
            <!--<a class="btn btn-primary single disabled" onclick="$.operate.edit()"-->
               <!--shiro:hasPermission="system:ncGasDuty:edit">-->
                <!--<i class="fa fa-edit"></i> 修改-->
            <!--</a>-->
            <!--<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()"-->
               <!--shiro:hasPermission="system:ncGasDuty:remove">-->
                <!--<i class="fa fa-remove"></i> 删除-->
            <!--</a>-->
            <!--<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:ncGasDuty:export">-->
                <!--<i class="fa fa-download"></i> 导出-->
            <!--</a>-->
        <!--</div>-->
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table" data-mobile-responsive="true"></table>
        </div>
    </div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('system:ncGasDuty:edit')}]];
    var removeFlag = [[${@permission.hasPermi('system:ncGasDuty:remove')}]];
    var prefix = ctx + "system/ncGasDuty";

    $(function () {
        var datass = [[${@dict.getType('dutyNum')}]];
        var datas = [[${@dict.getType('boilerNum')}]];
        var burner =[[${@dict.getType('burner')}]];
        var water =[[${@dict.getType('water')}]];
        var health =[[${@dict.getType('health')}]];
        var blowOff =[[${@dict.getType('blowOff')}]];
        var options = {
            uniqueId: "dutyId",
            url: prefix + "/list",
            // createUrl: prefix + "/add",
            // updateUrl: prefix + "/edit/{id}",
            // removeUrl: prefix + "/remove",
            // exportUrl: prefix + "/export",
            modalName: "锅炉房值班记录",
            showExport: true,
            showSearch: false,
            showRefresh: false,
            showColumns: false,
            showToggle: false,
            showExport: false,
            columns: [{
                checkbox: true
            },{
                title: "序号",
                formatter: function (value, row, index) {
                    return $.table.serialNumber(index);
                }
            },
                {
                    field: 'dutyId',
                    title: '序号',
                    visible: false,
                },
                {
                    field: 'nextDutyUserName',
                    title: '当班人',
                },
                {
                    field: 'dutyUserName',
                    title: '值班人',
                },
                {
                    field: 'createTime',
                    title: '时间',
                    sortable: true
                },
                {
                    field: 'dutyNum',
                    title: '夜间最低温度(℃) ', /*： 1:全天 2：白班 3：夜班 字典取值*/

                },
                {
                    field: 'boilerNum',
                    title: '锅炉号',
                    formatter: function(value, item, index) {
                        return $.table.selectDictLabel(datas,item.boilerNum);
                    }
                },
                {
                    field: 'boilerPressure',
                    title: '锅炉运行压力（Mpa）',
                    sortable: true
                },
                {
                    field: 'boilerTemperature',
                    title: '锅炉运行温度（℃）',
                    sortable: true
                },
                {
                    field: 'pressure1',
                    title: '循环泵1运行压力（Mpa）',
                    sortable: true
                },
                {
                    field: 'pressure2',
                    title: '循环泵2运行压力（Mpa）',
                    sortable: true
                },
                {
                    field: 'pressure3',
                    title: '循环泵3运行压力（Mpa）',
                    sortable: true
                },
                {
                    field: 'burner',
                    title: '燃烧器运行情况 ',  /*1：正常 2：异常*/
                    formatter: function(value, item, index) {
                        return $.table.selectDictLabel(burner,item.burner);
                    }
                },
                {
                    field: 'water',
                    title: '系统补水情况',  /* 1:正常 2:异常*/
                    formatter: function(value, item, index) {
                        return $.table.selectDictLabel(water,item.water);
                    }
                },
                {
                    field: 'health',
                    title: '环境卫生情况 ',   /*1:优 2:良 3：差*/
                    formatter: function(value, item, index) {
                        return $.table.selectDictLabel(health,item.health);
                    }
                },
                {
                    field: 'blowOff',
                    title: '排污情况 ', /*1：已排 2：未排*/
                    formatter: function(value, item, index) {
                        return $.table.selectDictLabel(blowOff,item.blowOff);
                    }
                },
                {
                    field: 'createBy',
                    title: '查表人员',
                },
                {
                    field: 'remark',
                    title: '备注',
                }]
        };
        $.table.init(options);
    });
    setTitle("值班记录",false)
</script>
</body>
</html>